package com.soft.face.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.ByteArrayTypeHandler;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@TableName(value = "user_face", autoResultMap = true)
@ApiModel(value = "用户人脸", description = "用户人脸数据表")
public class UserFace implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "人脸特征")
    @TableField(typeHandler = ByteArrayTypeHandler.class)
    private byte[] faceFeature;

    @ApiModelProperty(value = "人脸类别")
    private String faceClass;

    @ApiModelProperty(value = "文件url")
    private String fileUrl;

    @ApiModelProperty(value = "人脸id")
    private String faceId;

    @ApiModelProperty("相似值")
    private Float similar;

}
